package com.pc.tas.learning.trace.index;

import com.pc.cloud.core.SearchType;
import com.pc.cloud.services.QueryBuilder;
import com.pc.cloud.services.SearchArgs;

import java.util.Date;
import java.util.Map;

public class TraceSearchArgs extends SearchArgs {
    private String id;
    private String pageId;
    private String type;
    private Date beginDate;
    private Date endDate;
    private Map<String,String> otherParams;
    private Map<String,String[]> otherRange;
    
    private String hour;
    
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }

    public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public Map<String, String> getOtherParams() {
		return otherParams;
	}

	public void setOtherParams(Map<String, String> otherParams) {
		this.otherParams = otherParams;
	}

	public Map<String, String[]> getOtherRange() {
		return otherRange;
	}

	public void setOtherRange(Map<String, String[]> otherRange) {
		this.otherRange = otherRange;
	}
	
	public String getHour() {
		return hour;
	}

	public void setHour(String hour) {
		this.hour = hour;
	}

	@Override
	public String getSearchType() {
		return SearchType.TRACE;
	}
    
	@Override
	public QueryBuilder getQueryBuilder() {
		return TraceQueryBuilder.getInstance();
	}
}
